var status = -1;

function start(c, b, a) {
    qm.forceStartQuest();
    qm.dispose()
}

function end(e, d, c) {
    if (e === 0) {
        status--
    } else {
        status++
    }
    if (qm.getPlayer().getGender() == 0) {
        var a = 1531000
    } else {
        var a = 1531052
    }
    var b = -1;
    if (status <= b++) {
        qm.dispose()
    } else {
        if (status === b++) {
            qm.curNodeEventEnd(true);
            qm.eventSKill(0);
            qm.setInGameDirectionMode(true, false, true);
            qm.setStandAloneMode(true);
            qm.sendNormalTalk_Bottom("到底是什么状况？\r\n持续不断地有怪物冒出来。", 37, a, false, true)
        } else {
            if (status === b++) {
                qm.sendNormalTalk_Bottom("好像也没有学生身陷危险，继续留在这里只是浪费时间，\r\n还是先回去吧？", 37, a, true, true)
            } else {
                if (status === b++) {
                    qm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 500, 0);
                    qm.inGameDirectionEvent_AskAnswerTime(500)
                } else {
                    if (status === b++) {
                        qm.dispose();
                        qm.warp(331002500, 0, true)
                    }
                }
            }
        }
    }
};